import Vue from "vue";
import Vuex from "vuex";
import VuexORM from "vuex-orm";
import * as actions from "./actions";
import * as getters from "./getters";
import User from "./models/User";
import users from "./modules/users";
import app from "./modules/app";
Vue.use(Vuex);
const database = new VuexORM.Database();
database.register(User, users); // Userモデルとusersモジュールを登録
const store = new Vuex.Store({
  plugins: [VuexORM.install(database)],
  strict: true, // process.env.NODE_ENV !== 'production',
  actions,
  getters,
  modules: {
    app
  },
});

export default store;
